package com.jinmdz.fmis.mapper.entity;

import com.jinmdz.fmis.mapper.annotation.MyColumn;
import com.jinmdz.fmis.mapper.annotation.MyTable;
import com.jinmdz.fmis.mapper.base.BaseEntity;

import java.math.BigDecimal;

/**
 * 服务项目表Entity
 *
 * @author generator
 * @date 2020-03-12 17:08
 */
@MyTable(value = "ServiceItemEntity", name = "service_item", comment = "服务项目表")
public class ServiceItemEntity extends BaseEntity {
    /**
     * 服务分类外键
     */
    @MyColumn(value = "serviceTypeId", name = "service_type_id", comment = "服务分类外键", required = true)
    private Integer serviceTypeId;

    /**
     * 项目编码
     */
    @MyColumn(value = "itemCode", name = "item_code", comment = "项目编码", required = true)
    private String itemCode;

    /**
     * 项目名称
     */
    @MyColumn(value = "itemName", name = "item_name", comment = "项目名称", required = true)
    private String itemName;

    /**
     * 项目名称拼音缩写
     */
    @MyColumn(value = "itemNameAbbr", name = "item_name_abbr", comment = "项目名称拼音缩写")
    private String itemNameAbbr;

    /**
     * 项目价格
     */
    @MyColumn(value = "itemPrice", name = "item_price", comment = "项目价格", required = true)
    private BigDecimal itemPrice;

    /**
     * 项目数量
     */
    @MyColumn(value = "itemNumber", name = "item_number", comment = "项目数量", required = true)
    private BigDecimal itemNumber;

    /**
     * 项目单位
     */
    @MyColumn(value = "itemUnit", name = "item_unit", comment = "项目单位")
    private String itemUnit;

    /**
     * 项目描述
     */
    @MyColumn(value = "itemDescribe", name = "item_describe", comment = "项目描述")
    private String itemDescribe;

    /**
     * 是否物品
     */
    @MyColumn(value = "asGoods", name = "as_goods", comment = "是否物品", required = true)
    private Integer asGoods;

    /**
     * 是否项目包
     */
    @MyColumn(value = "asPackage", name = "as_package", comment = "是否项目包", required = true)
    private Integer asPackage;

    /**
     * 是否固定价格
     */
    @MyColumn(value = "asFixPrice", name = "as_fix_price", comment = "是否固定价格", required = true)
    private Integer asFixPrice;

    /**
     * 销售状态
     */
    @MyColumn(value = "disableState", name = "disable_state", comment = "销售状态", required = true)
    private Integer disableState;

    /**
     * 排序
     */
    @MyColumn(value = "sort", name = "sort", comment = "排序", required = true)
    private Integer sort;

    /**
     * 备注
     */
    @MyColumn(value = "remark", name = "remark", comment = "备注")
    private String remark;


    public Integer getServiceTypeId() {
        return serviceTypeId;
    }

    public ServiceItemEntity setServiceTypeId(Integer serviceTypeId) {
        this.serviceTypeId = serviceTypeId;
        return this;
    }

    public String getItemCode() {
        return itemCode;
    }

    public ServiceItemEntity setItemCode(String itemCode) {
        this.itemCode = itemCode;
        return this;
    }

    public String getItemName() {
        return itemName;
    }

    public ServiceItemEntity setItemName(String itemName) {
        this.itemName = itemName;
        return this;
    }

    public String getItemNameAbbr() {
        return itemNameAbbr;
    }

    public ServiceItemEntity setItemNameAbbr(String itemNameAbbr) {
        this.itemNameAbbr = itemNameAbbr;
        return this;
    }

    public BigDecimal getItemPrice() {
        return itemPrice;
    }

    public ServiceItemEntity setItemPrice(BigDecimal itemPrice) {
        this.itemPrice = itemPrice;
        return this;
    }

    public BigDecimal getItemNumber() {
        return itemNumber;
    }

    public ServiceItemEntity setItemNumber(BigDecimal itemNumber) {
        this.itemNumber = itemNumber;
        return this;
    }

    public String getItemUnit() {
        return itemUnit;
    }

    public ServiceItemEntity setItemUnit(String itemUnit) {
        this.itemUnit = itemUnit;
        return this;
    }

    public String getItemDescribe() {
        return itemDescribe;
    }

    public ServiceItemEntity setItemDescribe(String itemDescribe) {
        this.itemDescribe = itemDescribe;
        return this;
    }

    public Integer getAsGoods() {
        return asGoods;
    }

    public ServiceItemEntity setAsGoods(Integer asGoods) {
        this.asGoods = asGoods;
        return this;
    }

    public Integer getAsPackage() {
        return asPackage;
    }

    public ServiceItemEntity setAsPackage(Integer asPackage) {
        this.asPackage = asPackage;
        return this;
    }

    public Integer getAsFixPrice() {
        return asFixPrice;
    }

    public ServiceItemEntity setAsFixPrice(Integer asFixPrice) {
        this.asFixPrice = asFixPrice;
        return this;
    }

    public Integer getDisableState() {
        return disableState;
    }

    public ServiceItemEntity setDisableState(Integer disableState) {
        this.disableState = disableState;
        return this;
    }

    public Integer getSort() {
        return sort;
    }

    public ServiceItemEntity setSort(Integer sort) {
        this.sort = sort;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public ServiceItemEntity setRemark(String remark) {
        this.remark = remark;
        return this;
    }
}